Integrand size = 21, antiderivative size = 51 \[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {(2 a+b) \csc ^2(e+f x)}{2 f}-\frac {(a+b) \csc ^4(e+f x)}{4 f}+\frac {a \log (\sin (e+f x))}{f} \]
[Out]
Time = 0.08 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4223, 457, 78} \[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=-\frac {(a+b) \csc ^4(e+f x)}{4 f}+\frac {(2 a+b) \csc ^2(e+f x)}{2 f}+\frac {a \log (\sin (e+f x))}{f} \]
[In]
[Out]
Rule 78
Rule 457
Rule 4223
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {x^3 \left (b+a x^2\right )}{\left (1-x^2\right )^3} \, dx,x,\cos (e+f x)\right )}{f} \\ & = -\frac {\text {Subst}\left (\int \frac {x (b+a x)}{(1-x)^3} \, dx,x,\cos ^2(e+f x)\right )}{2 f} \\ & = -\frac {\text {Subst}\left (\int \left (\frac {-a-b}{(-1+x)^3}+\frac {-2 a-b}{(-1+x)^2}-\frac {a}{-1+x}\right ) \, dx,x,\cos ^2(e+f x)\right )}{2 f} \\ & = \frac {(2 a+b) \csc ^2(e+f x)}{2 f}-\frac {(a+b) \csc ^4(e+f x)}{4 f}+\frac {a \log (\sin (e+f x))}{f} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.43 \[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {a \cot ^2(e+f x)}{2 f}-\frac {a \cot ^4(e+f x)}{4 f}-\frac {b \cot ^4(e+f x)}{4 f}+\frac {a \log (\cos (e+f x))}{f}+\frac {a \log (\tan (e+f x))}{f} \]
[In]
[Out]
Time = 1.25 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.08
method | result | size |
derivativedivides | \(\frac {a \left (-\frac {\cot \left (f x +e \right )^{4}}{4}+\frac {\cot \left (f x +e \right )^{2}}{2}+\ln \left (\sin \left (f x +e \right )\right )\right )-\frac {b \cos \left (f x +e \right )^{4}}{4 \sin \left (f x +e \right )^{4}}}{f}\) | \(55\) |
default | \(\frac {a \left (-\frac {\cot \left (f x +e \right )^{4}}{4}+\frac {\cot \left (f x +e \right )^{2}}{2}+\ln \left (\sin \left (f x +e \right )\right )\right )-\frac {b \cos \left (f x +e \right )^{4}}{4 \sin \left (f x +e \right )^{4}}}{f}\) | \(55\) |
risch | \(-i a x -\frac {2 i a e}{f}-\frac {2 \left (2 a \,{\mathrm e}^{6 i \left (f x +e \right )}+b \,{\mathrm e}^{6 i \left (f x +e \right )}-2 a \,{\mathrm e}^{4 i \left (f x +e \right )}+2 a \,{\mathrm e}^{2 i \left (f x +e \right )}+b \,{\mathrm e}^{2 i \left (f x +e \right )}\right )}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{4}}+\frac {\ln \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right ) a}{f}\) | \(109\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 83, normalized size of antiderivative = 1.63 \[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=-\frac {2 \, {\left (2 \, a + b\right )} \cos \left (f x + e\right )^{2} - 4 \, {\left (a \cos \left (f x + e\right )^{4} - 2 \, a \cos \left (f x + e\right )^{2} + a\right )} \log \left (\frac {1}{2} \, \sin \left (f x + e\right )\right ) - 3 \, a - b}{4 \, {\left (f \cos \left (f x + e\right )^{4} - 2 \, f \cos \left (f x + e\right )^{2} + f\right )}} \]
[In]
[Out]
\[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\int \left (a + b \sec ^{2}{\left (e + f x \right )}\right ) \cot ^{5}{\left (e + f x \right )}\, dx \]
[In]
[Out]
none
Time = 0.18 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.96 \[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {2 \, a \log \left (\sin \left (f x + e\right )^{2}\right ) + \frac {2 \, {\left (2 \, a + b\right )} \sin \left (f x + e\right )^{2} - a - b}{\sin \left (f x + e\right )^{4}}}{4 \, f} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 238 vs. \(2 (47) = 94\).
Time = 0.35 (sec) , antiderivative size = 238, normalized size of antiderivative = 4.67 \[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {32 \, a \log \left (\frac {{\left | -\cos \left (f x + e\right ) + 1 \right |}}{{\left | \cos \left (f x + e\right ) + 1 \right |}}\right ) - 64 \, a \log \left ({\left | -\frac {\cos \left (f x + e\right ) - 1}{\cos \left (f x + e\right ) + 1} + 1 \right |}\right ) - \frac {{\left (a + b + \frac {12 \, a {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {4 \, b {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} + \frac {48 \, a {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}\right )} {\left (\cos \left (f x + e\right ) + 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) - 1\right )}^{2}} - \frac {12 \, a {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} - \frac {4 \, b {\left (\cos \left (f x + e\right ) - 1\right )}}{\cos \left (f x + e\right ) + 1} - \frac {a {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - \frac {b {\left (\cos \left (f x + e\right ) - 1\right )}^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}}}{64 \, f} \]
[In]
[Out]
Time = 19.88 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.20 \[ \int \cot ^5(e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {a\,\ln \left (\mathrm {tan}\left (e+f\,x\right )\right )}{f}-\frac {a\,\ln \left ({\mathrm {tan}\left (e+f\,x\right )}^2+1\right )}{2\,f}-\frac {-\frac {a\,{\mathrm {tan}\left (e+f\,x\right )}^2}{2}+\frac {a}{4}+\frac {b}{4}}{f\,{\mathrm {tan}\left (e+f\,x\right )}^4} \]
[In]
[Out]